//
//  ViewController.swift
//  WSJAlertViewController
//
//  Created by macOS on 2017/4/21.
//  Copyright © 2017年 macOS. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
     
     
      
        
    }
    
    
   
    @IBAction func show(_ sender: Any) {
        WSJAlertController.Builder(context: self).setTitle("Tips").setMessage("Are you ok?").setCancelTitle("NO").setConfirmTitle("YES").setConfirmHandler { (a) in
            
            print("Comfirm!!")
            
            }.setCancelHandler { (UIAlertAction) in
                print("Cancel!!")
            }.builder()?.showController()
        
        
        
    }

}

